﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master"
    CodeBehind="CricStadium.aspx.vb" Inherits="CricketForum.CricStadium" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

        <p>
            <h1>
                International Cricket Grounds :
            </h1>
        </p>
    <div class="RssFeed">
        RSS Feed
        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Pictures/General/Feed-icon.jpeg"
            ToolTip="RSS Feed" Width="20px" Height="20px" />
    </div>
    <div>
        <asp:GridView ID="gvCricGrounds" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            DataSourceID="CricketPlayersDataSource" Width="100%" AllowPaging="True" 
            PageSize="8">
            <EmptyDataTemplate>
                No Data Found.
            </EmptyDataTemplate>
            <HeaderStyle CssClass="H1" />
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="SL NO" SortExpression="ID" Visible="false" />
                <asp:HyperLinkField DataTextField="StadiumName" HeaderText="Stadium Name" SortExpression="StadiumName"
                    DataNavigateUrlFields="ID" DataNavigateUrlFormatString="CricGroundDetails.aspx?ID={0}" />
                <asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" />
                <asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
                <asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" />
                  <asp:BoundField DataField="CreatedBy" HeaderText="Posted By" SortExpression="CreatedBy" />
                  <asp:BoundField DataField="CreatedDate" SortExpression="CreatedDate" HeaderText="Posted Date" HtmlEncode="false"  DataFormatString="{0:g}" />
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Picture">
                    <ControlStyle Height="100px" Width="200px" />
                </asp:ImageField>


            </Columns>
        </asp:GridView>
        <div>
            <p>
                <table width="100%">
                    <tr>
                        <td>
                            <asp:Button ID="btnAddStaduim" runat="server" Text="Add Stadium" />
                        </td>
                    </tr>
                </table>
            </p>
        </div>
        <asp:SqlDataSource ID="CricketPlayersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnStringWorldsCricket %>"
            ProviderName="<%$ ConnectionStrings:ConnStringWorldsCricket.ProviderName %>"
            SelectCommand="SELECT * FROM CricketGrounds  order by StadiumName "></asp:SqlDataSource>
    </div>
</asp:Content>
